package com.hbnu.commonclass;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author kittychen
 * @date 2025-09-23 16:30
 */
public class DateDemo {

    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);

        long time = date.getTime();
        System.out.println(time);

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss E");
        String format = simpleDateFormat.format(date);
        System.out.println(format);
    }
}
